/*
 * element.java
 *
 * Created on April 14, 2007, 6:21 PM
 * @author Fergus Earnshaw
 */

package osrythm;

public class Element {
    
    /** Creates a new instance of element */
    protected String strSymbol;
    protected int iDenominator;
    protected int iNumerator;
    protected int iCount;
    public Element() {
        this.strSymbol = "N/A";
        this.iDenominator = 1;
        this.iNumerator = 1;
        this.iCount = 1;
    }
    
    public boolean playTick()
    {
        return false;
    }
    
    public String getSymbol()
    {
       return strSymbol;        
    }
    
    public float getDurationWhole()
    {
       return (iNumerator/iDenominator);
    }
    
    public float getDurationHalf()
    {
        return 2 * iNumerator * iDenominator;
    }
    
    public int getDenominator()
    {
        return iDenominator;
    }
    
    public int getCount()
    {
        return iCount;
    }
}
